import request from '@/utils/request'

// 查询指令发送记录列表
export function listcmdSendInfo(query) {
  return request({
    url: '/business/cmdSendInfo/list',
    method: 'get',
    params: query
  })
}

// 查询指令发送记录详细
export function getcmdSendInfo(id) {
  return request({
    url: '/business/cmdSendInfo/' + id,
    method: 'get'
  })
}

// 新增指令发送记录
export function addcmdSendInfo(data) {
  return request({
    url: '/business/cmdSendInfo',
    method: 'post',
    data: data
  })
}

// 修改指令发送记录
export function updatecmdSendInfo(data) {
  return request({
    url: '/business/cmdSendInfo',
    method: 'put',
    data: data
  })
}

// 删除指令发送记录
export function delcmdSendInfo(id) {
  return request({
    url: '/business/cmdSendInfo/' + id,
    method: 'delete'
  })
}

// 导出指令发送记录
export function exportcmdSendInfo(query) {
  return request({
    url: '/business/cmdSendInfo/export',
    method: 'get',
    params: query
  })
}